package com.zby.lease.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zby.lease.model.enums.ReleaseStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;

@Data
@Schema(description = "公寓信息")
@TableName(value = "apartment_info")
@AutoTable
public class ApartmentInfo extends BaseEntity{
    private static final long serialVersionUID = 1L;
    @Schema(description = "公寓名称")
    @TableField(value = "name")
    private String name;

    @Schema(description = "公寓介绍")
    @TableField(value = "introduction")
    private String introduction;

    @Schema(description = "公寓所在区域ID")
    @TableField(value = "district_id")
    private Long districtId;

    @Schema(description = "公寓所在区域名称")
    @TableField(value = "district_name")
    private String districtName;

    @Schema(description = "公寓所在城市ID")
    @TableField(value = "city_id")
    private Long cityId;
    @Schema(description = "公寓所在城市名称")
    @TableField(value = "city_name")
    private String cityName;
    @Schema(description = "公寓所在省份ID")
    @TableField(value = "province_id")
    private Long provinceId;
    @Schema(description = "公寓所在省份名称")
    @TableField(value = "province_name")
    private String provinceName;
    @Schema(description = "公寓详细地址")
    @TableField(value = "address_detail")
    private String addressDetail;
    @Schema(description = "公寓纬度")
    @TableField(value = "latitude")
    private String latitude;
    @Schema(description = "公寓经度")
    @TableField(value = "longitude")
    private String longitude;
    @Schema(description = "公寓联系电话")
    @TableField(value = "phone")
    private String phone;
    @Schema(description = "公寓是否发布")
    @TableField(value = "is_release")
    @AutoColumn(type = MysqlTypeConstant.INT)
    private ReleaseStatus isRelease;
}
